<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<?xml version="1.0" charset="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html>
  <head>
    <title>Cheques</title>
  </head>
  <body>
    
    <u>Cheques Devueltos</u><br/>
    <font size="2"><i>${sessionScope.customer.name}[${sessionScope.customer.id}]</i></font>
    <table border="1">
      <tr>
        <td>Codigo</td>
        <td>Numero</td>
        <td>Monto</td>
      </tr>
      <c:forEach var="cheque" items="${requestScope.cheCatalog.cheques}">
        <tr>
          <td>${cheque.code}</td>
          <td>${cheque.number}</td>
          <td><fmt:formatNumber value="${cheque.amount}" pattern="#,##0.00"/></td>
        </tr>
      </c:forEach>
      <tr>
        <td></td>
        <td>Total</td>
        <td><fmt:formatNumber value="${requestScope.cheCatalog.total}" pattern="#,##0.00"/></td>
      </tr>
    </table>
    <br/>
    <a href="OrderServlet?action=showHome">Volver</a>
  </body>
</html>
